package com.thzy.bbs.entity;

/**
 * 页面数据封装对象
 *
 * @author Ziv
 * @version 1.0
 * @date 2016/4/21 15:19
 */
public class FrontResult {

    private boolean success;

    private Integer code;

    private String msg;

    private FrontData data;

    public FrontResult(boolean success, Integer code) {
        this.success = success;
        this.code = code;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public FrontData getData() {
        return data;
    }

    public void setData(FrontData data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "FrontResult{" +
                "success=" + success +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
